<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="__STATIC__/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__STATIC__/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="__STATIC__/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script>
    $(function () {
        /*批量选择*/
        $('#f-check-all').on('click',function (e) {
            var all_check_status = this.checked;
            $('.f-check-item').each(function (index,ele) {
                ele.checked = all_check_status;
            });
        });
        $('.f-check-item').on('click',function (e) {
            var all_check_status = true;
            $('.f-check-item').each(function (index,ele) {
                if(!ele.checked){
                    all_check_status = false;
                }
            })
            $('#f-check-all')[0].checked = all_check_status;
        });
        /*批量删除*/
        $('.f-btn-delall').on('click',function (e) {
            $('#f-table-form').attr('action',$(this).data('url')).submit();
        })
    });
</script>